home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
programs
/
msgtrm10.zip
/
MSGTRIM.DOC
< prev
next >
Wrap
Text File
|
1993-03-07
|
16KB
|
309 lines
┌─────────────────────────┐
│ Message Trim 1.0 │
└─────────────────────────┘
!!!! WARNING !!!!
!! This Program Is Designed for GT 16.00 and Higher Specifically !!
!! Use on any other version could prove hazardous to your system !!
──────────────────────────────────────────────────────────────
History
──────────────────────────────────────────────────────────────
01-26-92 Ver 1.0 Initial Release
──────────────────────────────────────────────────────────────
A Request!
──────────────────────────────────────────────────────────────
Allot of time and effort has went into the birth, growth, and
testing of this program. I just want to encourage all echo
sponsors and/or echo bridgers to take a close look at this
program and consider using it PRIOR to bagging echo areas you
are sponsoring and/or bridging. In the not so distant past
GT Echo Conferences were very nice to read and use. Lately
however with the new sudden popularity and usage of QWK and
bridging in the GT Network, many many echos are becoming
overridden with Tag Lines, Reader Signatures, Auto Generated
Quoting, and Bridging information that the average user does
not care to have crowding a message they want to read. All
to many messages have more of this text in them than human
generated text. Message Trim provides a generously
configurable and easily implemented method of discarding much
of this unwanted information. If you are a system that is
sponsoring or bridging an echo conference for the GT Network,
PLEASE consider "Trimming" your message areas prior to your
bagging runs on a daily basis. It will make cleaner messages
and an overall better network for all of us. I am giving
this program to the network free of charge and expect no
gratuities, please consider using it to its fullest.
──────────────────────────────────────────────────────────────
What is It?
──────────────────────────────────────────────────────────────
Message Trim is a utility that searches the text of your
message areas in search of items you have configured in you
"Search List". If any of these items are found they are
"Trimmed" from the text of the message. The primary idea
behind a "search item" are those annoying little tag lines,
quote lines, and reader signatures. Your configuration can
hold up to 1000 individual "search items".
──────────────────────────────────────────────────────────────
Why Is It?
──────────────────────────────────────────────────────────────
You may be asking about now, Why would you want to do this?
Well there are two primary reasons for doing this. First of
all you can possibly save valuable disk space by removing
unwanted text from your message areas. The primary reason
you would want to do this is to remove all the unnecessary
and annoying auto generated text that has made it's way into
your message areas via QWK readers, offline readers, and echo
bridging software. So the basic idea is this, if you want to
save some disk space, or you are tired of reading all the
auto generated text, or you just want you message areas to
have a look of cleanliness that GT echos used to have, then
MSGTRIM is for you!
──────────────────────────────────────────────────────────────
Configuration...
──────────────────────────────────────────────────────────────
The Message Trim configuration consists of two parts. The
first part consists of three parameters that tell Message
Trim how to deal with Blank lines and .ORIGIN lines. The
second part of the configuration consists of editing the
actual "Search Items" that Message Trim will be searching
for. First lets talk about the Blank and .ORIGIN line
parameters. When you first enter config you will be
presented with the following menu.
╔═══════════════════════════════════════════════════════════════════╗
║ ║██
║ ║██
║ Maximum Blank Lines To Allow At Top Of Message.....[000] ║██
║ Maximum Sequential Blank Lines To Allow............[002] ║██
║ Maximum Total Origin Lines To Allow................[002] ║██
║ ║██
║ ║██
║ F1 Help F2 Active Keys F3 Edit Remove List ║██
║ ║██
╚═══════════════════════════════════════════════════════════════════╝██
██████████████████████████████████████████████████████████████
The first item "Maximum Blank Lines To Allow At Top Of
Message" allows you to specify the Maximum number of blanks to
leave prior to the first line in the message that contains a
character other than a space. Specifying 0 on this line will
cause MSGTRIM to strip ALL blank lines from the top of the
message.
The second item "Maximum Sequential Blank Lines To Allow"
allows you to specify the Maximum number of blank lines to
allow sequentially in your messages. If you specify 2 for
this field MSGTRIM will strip all blank lines that follow any
2 sequential blanks in a message. Please Note that if this
number is less than the number you specified for Blank Lines
At Top Of Message, you will override the "Blank At Top"
parameter.
The third item "Maximum Total Origin Lines To Allow" allows
you to specify the Maximum number of lines the .ORIGIN line
will be allowed to consume. .ORIGIN lines are stored in
messages as one long continuous line and are wrapped at 80
columns by GT and various readers. If you allow the .ORIGIN
line to occupy 2 lines in a message, .ORIGIN lines in excess
of 160 characters will be truncated. If any .ORIGIN lines are
truncated, and they contain any from of ANSI Escape sequences,
an ANSI reset ESC[0m will be appended to the end of the
.ORIGIN line.
After you have set these three parameters you are ready to
start editing the actual "Search Items" in the configuration.
To get to the "Search Item" editing menu press F3. You will
then be presented with the following menu.
┌───────────────────────────────────────────────────────────────────────┐
│Line Applied By Blue Wave Reader │██
└───────────────────────────────────────────────────────────────────────┘██
█████████████████████████████████████████████████████████████████
╔═════════════[ESC Exit F1 Help F2 Key Help F3 ASCII Chart]══════════╗
║ Blue Wave ║
║ GoldED ║██
║ SLMR ║██
║ *SLMR ║██
║ # Origin ║██
║ # SLMR ║██
║ * 1st ║██
║ * ATP/LINUX ║██
║ * DeLuxe ║██
║ * DeepSouthNet ║██
║ * Deluxe ║██
║ * FQ ║██
║ * GT ║██
║ * Jabber ║██
║ * KWQ/2 ║██
╚═════════════════════════[ Item 1 of 102 Total ]═══════════════════════╝██
█████████████████████████████████████████████████████████████████
At the top of you screen you will notice a box that contains a
comment for the current line you are on. You can now edit the
current line, edit the comment for this entry, duplicate the
entry, insert blank line, or delete the entry. Press F2 to
see a list of keys that provide these functions. You will
find MSGTRIM comes configured with over 100 entries in the
configuration. These items consist of common Tag Lines,
Signature Lines, and Quote Indicators. You are free to add to
or delete from this list as you see fit for your
implementation. You are allotted 1000 entries in the
configuration.
──────────────────────────────────────────────────────────────
Execution..
──────────────────────────────────────────────────────────────
After configuration, running the program is fairly easy. If
you have a GTPATH environment variable set, and a GTMDIR.BBS
file in the directory pointed to by <GTPATH> then all you
have to do is type MSGTRIM on the DOS command line. MSGTRIM
will then proceed to read the GTMDIR.BBS file and process
each message area listed and remove any text found that
matches any of the "Search Item" entries on a line by line
basis. If you wish to search only a portion of you available
message areas you can create an alternate GTMDIR.BBS file.
See "Command Line Parameters" below in this document for the
method of specifying an alternate GTMDIR.BBS file.
──────────────────────────────────────────────────────────────
Command Line Parameters
──────────────────────────────────────────────────────────────
There's six possibilities.
/CONFIG
Enter MSGTRIM config mode.
/GTM:<ALT_GTMDIR>
Don't use the GTMDIR.BBS file in the GTPATH directory.
Substitute a full path and filename for <ALT_GTMDIR>. This
allows you to specify an alternate filename so you don't have
to process all your message areas if you choose not to.
/L
If you want MSGTRIM to keep an ongoing log file of the text
removed from your messages use this parameter. Your log file
will be <GTPATH>\HOTWARE\MSGTRIM.LOG. If you use this
parameter the next execution will append to the existing log
file. You must manually delete this log file to avoid
filling up your disk.
/NL
If you want MSGTRIM to keep a log file, but not to append to
the existing log file use this parameter. The difference
between this parameter and /L is that if a log file exists it
will be truncated to 0 length prior to writing to it. This
prevents you log file from growing to an excessive length.
/REGISTER
If you would like to use the Auto Registration feature of
MSGTRIM, use this parameter. MSGTRIM will send a
registration message to ROB ROESCH at 064/003 via netmail
when this parameter is used.
/?
This parameter will show you all the available command line
parameters with a brief description of each.
──────────────────────────────────────────────────────────────
Active Keyboard Input
──────────────────────────────────────────────────────────────
MSGTRIM has the ability to exit various levels of execution
at your request. There are two different "breaks" out of the
program. Listed on the execution screen you will notice that
the ESCAPE and F1 keys will allow you to break out of the
various MSGTIM Loops. F1 will break out of the current
message area and continue with the next message area. ESCAPE
will do a graceful and immediate exit from the program.
──────────────────────────────────────────────────────────────
Errorlevels
──────────────────────────────────────────────────────────────
Here are the possible errorlevel exits the program will give.
ERRORLEVEL 0 No Problems, Good Run.....
ERRORLEVEL 1 Cannot Open Configuration File
ERRORLEVEL 2 Cannot Open GTMDIR.BBS
ERRORLEVEL 3 Early Exit Requested
ERRORLEVEL 4 GTPATH Environment Variable Not Set
ERRORLEVEL 5 Invalid command line parameter
ERRORLEVEL 6 Insufficient Memory For Allocation
──────────────────────────────────────────────────────────────
Registration
──────────────────────────────────────────────────────────────
I am not requesting any money for this program, but I would
not turn any down either <g>. If you want to slip $5.00 into
and envelope I'll accept it. Although I don't require a
registration fee I would appreciate knowing that you are using
the program on a normal basis. Therefore I have provided a
simple and easy way for you to register this program. From
the DOS prompt type:
MSGTRIM /REGISTER
MSGTRIM will the proceed to send me a netmail message informing
me that you are using the program. Please use this feature
ONCE.
──────────────────────────────────────────────────────────────
Who Is Responsible for This?
──────────────────────────────────────────────────────────────
Rob Roesch
The HOTware BBS
GT Power Net-Node 064/003
Rt 7 Box 566
Mocksville, NC
704-492-2081 (USR 16.8 DS)
If you start using this utility, and get a chance, let me
know (see above procedures. If you don't have any use for
it, delete it for your total refund of all the disk space
that it was occupying. This program comes with no warranty,
no guarantee, and no promises. If it works GREAT, if not
let me know and I will gladly take a look at it in my spare
time. If you really really really like the program and want
to make any donations, feel free, but it is not a
requirement.....